﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GAE_PI.Models;
using GAE_PI.Exceptions;

namespace GAE_PI.Controllers
{
    public class ActiviteEleveController : Controller
    {
        //
        // GET: /ActiviteEleve/

        public ActionResult ActiviteEleve(string username)
        {
            try
            {
                return View(DBModel.getDBM().getActiviteEleve(username));
            }
            catch (GAEException ex)
            {
                ex.errorModel.ControllerName = "ActiviteEleve";
                ex.errorModel.ControllerAction = "ActiviteEleve";
                return View("Error", ex.errorModel);
            }
        }

    }
}
